﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

namespace DutyWeb.UserControls
{
    public partial class ViewTheWholeApprovingWaterFall : System.Web.UI.UserControl
    {
        private List<string> waterFallList;

        public List<string> WaterFallList
        {
            get
            {
                return waterFallList;
            }
            set
            {
                waterFallList = value;
            }
        }

        private static List<string> contantWaterFall;

        private List<string> getContantWaterFall(List<string> list)
        {
            if (contantWaterFall == null)
            {
                contantWaterFall = new List<string>();
                contantWaterFall.Add("开始");
                contantWaterFall.Add("新建");
            }
            contantWaterFall.AddRange(list);
            return contantWaterFall;
        }





        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            List<string> list = new List<string>();
            this.DataList1.DataSource = this.getContantWaterFall(list);
            this.DataList1.DataBind();
        }
    }
}